# Contributor: Will Sinatra <wpsinatra@gmail.com>
# Maintainer: Will Sinatra <wpsinatra@gmail.com>
pkgname=sunxi-tools
pkgver=1.4.2
pkgrel=0
pkgdesc="A collection of command line tools for ARM devices with Allwinner SoCs"
url="https://github.com/linux-sunxi/sunxi-tools"
license="GPL-2.0-or-later"
arch="all"
makedepends="libusb-dev"
source="sunxi-tools-$pkgver.tar.gz::https://github.com/linux-sunxi/sunxi-tools/archive/v$pkgver.tar.gz"
options="!check" #check attempts to apply patches that fail

build() {
	make
	make misc
}

package() {
	PREFIX="$pkgdir/usr" make install
	PREFIX="$pkgdir/usr" make install-misc
}

sha512sums="
633bc1752ae11799ce0bae347b52296792d28265a2260e173727847e1f457b767e88d02ae547bb55a2bb05e1eb552ba4406985ae105a1712a9fa30852ae293e8  sunxi-tools-1.4.2.tar.gz
"
